//
//  LZVideoDetialModel.m
//  laziz_Consumer
//
//  Created by xbnzd on 16/11/11.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import "LZVideoDetialModel.h"
#import "LZDateFormatterManager.h"
#import "MJProperty.h"

@implementation LZVideoDetialModel

- (id)mj_newValueFromOldValue:(id)oldValue property:(MJProperty *)property
{
    if ([oldValue isKindOfClass:[NSNull class]])
        return @"";
    
    if ([property.name isEqualToString:@"couponsStartDaytime"] || [property.name isEqualToString:@"couponsEndDaytime"]) {
        if (oldValue != nil) {
            NSString *ss = (NSString *)oldValue;
            if (ss.length > 0) {
                return [[LZDateFormatterManager shareInstance] stringFromStringNormalHaveLineHHmm:ss];
            }
        }
    }
    
    return oldValue;
}

+ (NSDictionary *)mj_objectClassInArray
{
    return @{
             @"commentList" : @"LAReviewModel",
             };
}

+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{
             @"videoId" : @"id"
             };
}

@end
